﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using IService.DataDLL;
using IService.Model;
using IService.Data;

namespace IService.Business.Manager
{
    public class ActivityApplyManager
    {
        public DataTable GetActivityApplyListAll()
        {
            return DTVData.ActivityApplyManager.GetActivityApplyListAll(typeof(ActivityApply));
        }

        public DataTable GetLatestActivityApplyList(int activityApplynum)
        {
            return DTVData.ActivityApplyManager.GetLatestActivityApplyList(typeof(ActivityApply), activityApplynum);
        }

        public DataTable GetActivityApplyListPagin(PagingEntity pe)
        {
            return DTVData.ActivityApplyManager.GetActivityApplyListPagin(typeof(ActivityApply), pe);
        }

        public ActivityApply GetActivityApplyById(int Id)
        {
            ActivityApply activityApply = new ActivityApply();
            activityApply.ID = Id;
            return DTVData.ActivityApplyManager.GetActivityApplyById(activityApply);
        }
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="ActivityApply"></param>
        /// <returns></returns>
        public bool InsertActivityApply(ActivityApply activityApply)
        {
            return DTVData.ActivityApplyManager.InsertActivityApply(activityApply);
        }

        public bool UpdateActivityApply(ActivityApply activityApply)
        {
            return DTVData.ActivityApplyManager.UpdateActivityApply(activityApply);
        }

        public bool DeleteActivityApplyByActivityID(int Id)
        {
            return DTVData.ActivityApplyManager.DeleteActivityApplyByActivityID(typeof(ActivityApply), Id);
        }
        public bool DeleteActivityApply(int Id)
        {
            ActivityApply activityApply = new ActivityApply();
            activityApply.ID = Id;
            return DTVData.ActivityApplyManager.DeleteActivityApply(activityApply);
        }

        public bool DeleteActivityApplyByIds(string Ids)
        {
            return DTVData.ActivityApplyManager.DeleteActivityApplyByIds(typeof(ActivityApply), Ids);
        }

        public bool DeleteActivityApplyByActivityIds(string Ids)
        {
            return DTVData.ActivityApplyManager.DeleteActivityApplyByActivityIds(typeof(ActivityApply), Ids);
        }
    }
}
